<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<fmt:setLocale value="en" />
<fmt:setBundle basename="messages" />
<script>
	///zipzapPannels pour passer en plein �cran, sans modif x_dec ni y_dec
	function IHM_zipzapPannels(bForceNonFullScreen,bForceFullScr)
	{
		if(frameElement)
		{	
			var father = frameElement.parentNode.parentNode;  //document.getElementById("FrameSet1");
			if(father)
				if(father.rows=='0,*'&& null==bForceFullScr)
					father.rows='50,*';//� l'init, pourrait �tre r�cup...
				else
					if(bForceNonFullScreen==null || bForceFullScr)
						father.rows='0,*';
			father = frameElement.parentNode;//var father = document.getElementById("FrameSet2");
			if(father)
				if(father.cols=='0,*'&& null==bForceFullScr)
					father.cols='200,*';//� l'init, pourrait �tre r�cup...
				else
					if(bForceNonFullScreen==null || bForceFullScr)
						father.cols='0,*';
		}
	}
IHM_zipzapPannels(true);
</script>

<table class="topMenu" border="0" cellspacing="0" cellpadding="0" onclick="IHM_zipzapPannels(true);">
  <tr>
    <%-- GENERAL --%>
    <c:if test="${param.section == 'general'}">
	  <td class="topMenuSelected"><table  border="0"><tr>
        <td><img class="topMenuImg" src="<c:url value=''/>" border="0" /></td>
        <td><fmt:message key="topMenu.general"/></td>
      </tr></table></td>   
    </c:if>
    <c:if test="${param.section != 'general'}">
	  <td class="topMenu"><table border="0"><tr>
        <td><c:url value='/detailParc.do' var="detailLink">
          <c:param name="id" value="${siteBean.id}"/></c:url>
		  <a href="<c:out value='${detailLink}'/>" target="bureau"><img class="topMenuImg"
          	src="<c:url value='/images/E00Icon.png'/>" border="0" /></a></td>
        <td><a class="topMenu" href="<c:out value='${detailLink}'/>" 
           target="bureau"><fmt:message key="topMenu.general"/></a></td>
      </tr></table></td>
    </c:if>
    
    <%-- CEP MOBILE --%>
	  <c:if test="${param.section == 'phone'}">
	    <td class="topMenuSelected"><table  border="0"><tr>
	      <td><img class="topMenuImg" src="<c:url value='/images/contactIcon.png'/>" border="0" /></td>
	      <td> <fmt:message key="topMenu.cep.mobile"/></td>
	    </tr></table></td>
	  </c:if>
	  <c:if test="${param.section != 'phone'}">
		<td class="topMenu"><table border="0"><tr>
	      <td><c:url value='/detailContactLst.do' var="contactLink" />
			<a href="<c:out value='${contactLink}'/>" target="bureau"><img class="topMenuImg"  
	           src="<c:url value='/images/contactIcon.png'/>" border="0" /></a></td>
	      <td><a class="topMenu" href="<c:out value='${contactLink}'/>"
 	        target="bureau"><fmt:message key="topMenu.cep.mobile"/></a></td>
	    </tr></table></td>
	  </c:if>
    
    <%-- CEP FIXE --%>
	    <c:if test="${param.section == 'cepfixe'}">
	      <td class="topMenuSelected"><table  border="0"><tr>
	        <td><img class="topMenuImg"   src="<c:url value='/images/periodeIcon.png'/>" border="0" /></td>
	        <td> <fmt:message key="topMenu.cep.fixe"/></td>
	      </tr></table></td>
	    </c:if>
	    <c:if test="${param.section != 'cepfixe'}">
		  <td class="topMenu"><table border="0"><tr>
	        <td><c:url value='/periodeLst.do' var="periodeLink">
	          <c:param name="id" value="${siteBean.id}"/></c:url>
			  <a href="<c:out value='${periodeLink}'/>" target="bureau"><img class="topMenuImg"   
	             src="<c:url value='/images/periodeIcon.png'/>" border="0" /></a></td>
	        <td><a class="topMenu" href="<c:out value='${periodeLink}'/>" target="bureau"><fmt:message key="topMenu.cep.fixe"/></a></td>
	      </tr></table></td>
	    </c:if>
    <%-- ACTION --%>
      <c:if test="${param.section == 'action'}">
        <td class="topMenuSelected"><table  border="0"><tr>
          <td><img class="topMenuImg"  src="<c:url value='/images/actionIcon.png'/>" border="0" /></td>
          <td> <fmt:message key="topMenu.action"/></td>
        </tr></table></td>
      </c:if>
      <c:if test="${param.section != 'action'}">
	    <td class="topMenu"><table border="0"><tr>
          <td>
          	<c:url value='/prepareSearchActions.do' var="actionLink">
            	<c:param name="id" value="${siteBean.id}"/>
            </c:url>
		    <a href="<c:out value='${actionLink}'/>" target="bureau"><img class="topMenuImg"  
               src="<c:url value='/images/actionIcon.png'/>" border="0" /></a></td>
          <td><a class="topMenu" href="<c:out value='${actionLink}'/>"
             target="bureau"><fmt:message key="topMenu.action"/></a></td>
        </tr></table></td>
      </c:if>
    
    <%-- CONFIG --%>
      <c:if test="${param.section == 'config'}">
        <td class="topMenuSelected"><table  border="0"><tr>
          <td><img class="topMenuImg"  src="<c:url value='/images/tsIcon.png'/>" border="0" /></td>
          <td> <fmt:message key="topMenu.config"/></td>
        </tr></table></td>
      </c:if>
      <c:if test="${param.section != 'config'}">
	    <td class="topMenu"><table border="0"><tr>
          <td>
          	<c:url value='/tsMaterielLst.do' var="tsLink">
            	<c:param name="id" value="${siteBean.id}"/>
            </c:url>
		    <a href="<c:out value='${tsLink}'/>" target="bureau"><img class="topMenuImg"  
               src="<c:url value='/images/tsIcon.png'/>" border="0" /></a></td>
          <td><a class="topMenu" href="<c:out value='${tsLink}'/>"
             target="bureau"><fmt:message key="topMenu.config"/></a></td>
        </tr></table></td>
      </c:if>
  </tr>
</table>